convertaThis is my variant of utility for preparing an Award BIOS logotype. Taking the logo file in any known format as a source, it creates up to three image files in three different formats (monochrome, bitmap, and layered) at once. It never lets you to replace the Blue Award Medal and always fills its area with the standard one.I. imagesThere are three different formats used by Award Software programmers to store logo in BIOS; developing a new format some limits of each previous were fixed. They did not use any of standard formats like BMP, GIF, or PCX for this; to store images, three special formats were developed : monochrome, bitmap, and layered. So before designing and replacing logo, check out what format is used in BIOS of your mainboard.monochromeIn 486 and earlier 586 BIOSes for i430FX and i430VX based mainboards, the logo was stored right inside system BIOS. It was a monochrome one and was shown with yellow and green; these colors can't be changed. Although Converta can create images in this format, they can't be added to system BIOS with cbrom.The limit for this image format is 136 by 84 pixels, black and white. bitmapLater, nearly 1996, those programmers understood at last that logo is not used by any operating system; so there was no reason to store it inside system BIOS, and it was released into an optional component inside BIOS file. At the same time, the internal BIOS structure was changed : it became componental (version 4.51PG), and components could be added and removed easily. To show an image in text mode (!), they developed a new bitmap format. Imagine that logo consists of blocks, 8 by 14 pixels each: this is the size of symbol in text mode.For that reason, each block can contain pixels of only two colors, foreground and background, whilst background color can't be bright. The limit for this image format is 136 by 126 pixels (9 lines by 17 symbols), up to 16 colors of standard EGA palette. Image becomes square if its size is 136 by 98 pixels (7 lines by 17 symbols). layeredWith time, such block dividing and color limitations have ceased to meet the OEM requirements, and in 1998 Award Software introduced the new, layered format for boot logo. It is free of all limitations except image size, so OEMs got the best way to put their logos into BIOS without re-designing them. It became possible because POST shows all its messages and this logo in graphic mode 12h (640x480, 16 colors.)As I said before, the only one limit is the image size: 136 by 480 pixels. Image becomes square if its size is 136 by 112 pixels. BIOS versions which support this logo format still are rather seldom, but Gigabyte, AOpen, Chaintech and some others already use this format in their new BIOS versions. II. usageConverta is a DOS utility so it can be run under DOS, Windows 95/98/NT/2K, as well as under Linux DOS Emulation. This program is a command line utility, so forget about pretty interfaces. You can have help starting Converta with "/?" key.choosing proper formatAt first, you need to figure out what format is used by BIOS of your mainboard. Let's say, you've already got a BIOS image file downloaded from internet or grabbed from flash chip on mainboard (usually it's a file with ".bin" or ".awd" extension.) View its contents with cbrom :cbrom mybios.bin /d If you see a component of the "EPA Pattern" type, extract itit's the logotype : cbrom mybios.bin /epa extract At this step, you will be asked about file namelet's say, you've extracted it into file named logo.old. Now run Converta with "/?" key: converta logo.old /? This will show you the format used for logo.old. Now, return to images description and prepare your logo according to the limits of this format. Save it as 16-colors BMP without RLE compression and put into folder where you put Converta. convertingWell this is easy. Run Converta signing filename of your BMP file and destination format switch:converta mylogo.bmp /<the format switch> The valid format switches are: /bmpto convert to Microsoft BMP format /monto convert to Award monochrome format /bitto convert to Award bitmap format /layto convert to Award layered format /allto convert to all listed formats at once If you sign particular format, the destination file will have name of source one and the ".epa" extension (except the case when you convert to ".bmp"). If you're converting to all listed formats at once, destination files will have extensions similar to format switches. As final point, the file you got must be put into BIOS image file with cbrom : cbrom mybios.bin /epa mylogo.ext III. errorsOf course sometimes Converta will report error messages; that means you didn't read manual carefully. Every time an error occurs, you'll see it in English. The return state also can be requested by int 21h : 4dh DOS function, or by "errorlevel" code if you're using Converta in batch mode.01: File not specifiedThe first parameter must be the file name of your logo or any logo that you want to convert.02: File not foundEither you have typed the name of your logo incorrectly, or you have signed its name including path to it. Place your logo into the same folder where you put Converta.03: Incorrect image sizeThe maximum width for any logo is 136 pixels. If you're trying to convert it to a monochrome format, the maximum height is 84 pixels; other limits are 126 pixels height for bitmap format, and 480 pixels for layered one.04: File is compressedConverta does not open BMP files compressed with RLE algorithm. Re-save your logo without compression.05: Too many colorsThe logo (and the BMP you prepared before) cannot contain more than 16 colors. Re-save your logo as 4-bit (16 colors) BMP file.07: Cannot convert to itselfThis appears if you're trying to convert your logo to the same format you have source in.08: Out of memorySomething in conventional memory (lower than first megabyte) occupies too much space for itself. Try to unload some drivers and/or unnecessary TSR programs.09: More than two colors in block X:YThis appears when you're trying to convert your logo to bitmap format. As I said before, each 8x14 pixel block can contain up to two colors only.10: Two bright colors in block X:YThis appears when you're trying to convert your logo to bitmap format. As I said before, each 8x14 pixel block can contain only one bright color and another one must be dark (but both can be dark too).11: Incorrect file formatConverta auto-detects the source file format. If this happens, ensure that you have your source in one of supported formats (BMP, monochrome, bitmap, or layered).100-104: Format codesOther exit codes can be used in batch mode. They report the logo format if Converta was run to determine it.100 Source is in unknown format 101 Source is in Microsoft BMP format 102 Source is in Award monochrome format 103 Source is in Award bitmap format 104 Source is in Award layered format IV. legal notesConverta is freeware. You may use it for yourself or for your commercial needs, put it on the internet, fido, or any other global net, distribute or re-distribute, send by email to any other freely as long as this archive contains Converta itself and at least one manual, in English, unmodified.You have no right to decompile or disassembly it (though it, by and large, is necessary for nobody.). You may translate the manual to any other language keeping it looking like origin and distributing it with original one. In general, do what you want, up to scratching its codes on a granite plate with a chisel. Dixi. |